home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 1
/
The Arsenal Files (Arsenal Computer).ISO
/
telecom
/
voixel10.lha
/
VOIXEL
/
VOIXELVI.REX
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-12-22
|
1KB
|
64 lines
/* Script To View GPFax-FAX. VoiXEL V1.00 */
/* ADDRESS VOIXELPORT */
options results /* Gets info back from Term */
parse arg file pad /* Gets the AmigaDOS argument for the PW */
signal on halt
signal on syntax
signal on break_c
options failat 50
if file = '' then do
say "No FAX-file supplied!"
say "Exiting.."
exit
end
ADDRESS COMMAND "VoiXEL:VoiXELWaitForPort -q REXX_GPFAX"
if rc>=5 then
do
ADDRESS COMMAND "run >nil: <nil: GPFax:GPFax -z -W -NP -Q"
ADDRESS COMMAND "VoiXEL:VoiXELWaitForPort REXX_GPFAX"
if rc>0 then
do
exit
end
ADDRESS rexx_gpfax viewfax file
ADDRESS rexx_gpfax quitfax
end
else
do
ADDRESS rexx_gpfax viewfax file
end
exit
error:
call Debug("Error" rc "at line" sigl)
return rc
break_c:
halt:
call Debug("CTRL_C at line" sigl)
exit 20
syntax:
call Debug("Syntax error" rc "at line" sigl)
return rc
Debug: procedure
parse arg info
firstLine = sourceline(1)
parse var firstLine '/*' title '*/'
say title ':' info
return